package com.flyqiu.flow.boot.events;

import com.flyqiu.flow.api.FlyQiuFlowEngine;

import com.flyqiu.flow.api.event.FlowEngineEvent;
import org.springframework.stereotype.Component;

@Component
public class TestFlowEngineEvent implements FlowEngineEvent {
    @Override
    public void createBefore(FlyQiuFlowEngine eventContext) {
        System.out.printf("process:引擎:createBefore：%s%n", eventContext.versionCode());
    }

    @Override
    public void createAfter(FlyQiuFlowEngine eventContext) {
        System.out.printf("process:引擎:createAfter：%s%n", eventContext.versionCode());
    }

    @Override
    public void completeBefore(FlyQiuFlowEngine eventContext) {
        System.out.printf("process:引擎:completeBefore：%s%n", eventContext.versionCode());
    }

    @Override
    public void completeAfter(FlyQiuFlowEngine eventContext) {
        System.out.printf("process:引擎:completeAfter：%s%n", eventContext.versionCode());
    }

}
